window.onload = function()
	{
		verifyUser();
		getLocation();
	}
function getLocation()
  {
	  if (navigator.geolocation)
		{
			navigator.geolocation.getCurrentPosition(showPosition);
		}
	  else{document.getElementById("local").innerHTML="Geolocation is not supported by this browser.";}
  }
function showPosition(position)
  {
	  document.getElementById("local").innerHTML="Latitude: " + position.coords.latitude +
	  "<br />Longitude: " + position.coords.longitude +
	  "<input type=\"hidden\" value=\"" + position.coords.latitude + "\"name=\"lat\" />" +
	  "<input type=\"hidden\" value=\"" + position.coords.longitude + "\"name=\"long\" />";
  }
 
 function addMarker(map, latlong, title, content) {
	var markerOptions = {
		position: latlong,
		map: map,
		title: title,
		clickable: true
	};
	var marker = new google.maps.Marker(markerOptions);

	var infoWindowOptions = {
		content: content,
		position: latlong
	};

	var infoWindow = new google.maps.InfoWindow(infoWindowOptions);

	google.maps.event.addListener(marker, 'click', function() {
		infoWindow.open(map);
	});
}